package tpInterface;

import java.util.List;
import object.AccountDetail;
import object.AccountSignin;
import object.ReturnBool;

/**
 *
 * @author SonTT
 */
public interface IAccount {

    // Sign in method:
    ReturnBool signin(AccountSignin accountSignin);

    // Sign up method:
    ReturnBool signup(AccountDetail accountDetail);

    // Get account from database:
    List<AccountDetail> getAccounts();

    // Add new account:
    ReturnBool addAccount(AccountDetail accountDetail);

    // Edit account:
    ReturnBool editAccount(AccountDetail accountDetail);

    // Delete account:
    ReturnBool deleteAccount(String username);

    // Delete accounts:
    ReturnBool deleteAccounts(String[] usernames);

    // Search account:
    List<AccountDetail> searchAccount(String keyword);
}
